Skip to content

minor cleanup#6360

Merged
kanwarujjaval merged 3 commits intonewarchitecturefrom
uj/arch-distill
Jul 1, 2025
Merged

minor cleanup#6360
kanwarujjaval merged 3 commits intonewarchitecturefrom
uj/arch-distill

Conversation

@kanwarujjaval
Copy link
Member

No description provided.

@kanwarujjaval kanwarujjaval self-assigned this Jun 30, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR performs minor cleanups in changeStreamReader.js, improving logging, stream handling, and async consistency.

  • Swapped console.log calls for structured log.i/log.w
  • Added safety checks around closing streams and finalized cleanup
  • Introduced await on processBadRange calls for correct async flow
Comments suppressed due to low confidence (2)

api/parts/data/changeStreamReader.js:186

  • Ensure that the enclosing function is declared async; using await in a non-async context will cause a syntax error.
                    await this.processBadRange({name: this.name, cd1: token.cd, cd2: next_token.cd}, this.failedToken);

api/parts/data/changeStreamReader.js:284

  • This closing brace appears to prematurely close the try block, leading to a 'catch without try' syntax error. Please remove or reposition it to balance the block correctly.
        }

@kanwarujjaval kanwarujjaval merged commit 25d5c5c into newarchitecture Jul 1, 2025
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants